import request from '@/utils/request'

const communityApi = {
  postApplication: '/api/OAB_Proposer/postNewProposer',
  getDeptDropList: '/api/sys_department/Get_DropList',
  IDCardAble: 'api/OAB_SysObject/judgeIdCard',
  getHousesCountSJ: '/api/OAB_SysObject/getHousesCountSJ',
  getMarriage: '/api/OAB_SysObject/getMarriage',
  subsidycalculation: '/api/OA_PublicConfig/post_Calculatingsubsidies',
  getHousesCount: '/api/OAB_SysObject/getHousesCount',
  UserQX: '/api/sysusers/UserQX',
  getProposerList: '/api/OAB_Proposer/getProposerList',
  getYdsbResult: 'api/ydsb/getYdsbResult',
  postWebToChangeInto: '/api/OAB_Proposer/postWebToChangeInto',
  getProposerListWeb: '/api/OAB_Proposer/getProposerListWeb',
  getWeb_NewProposerbyID: '/api/OAB_Proposer/getWeb_NewProposerbyID',
}

export function postApplication(data) {
  return request({
    url: communityApi.postApplication,
    method: 'post',
    data,
  })
}

export function getDeptDropList(params) {
  return request({
    url: communityApi.getDeptDropList,
    method: 'get',
    params,
  })
}
export function IDCardAble(params) {
  return request({
    url: communityApi.IDCardAble,
    method: 'get',
    params,
  })
}

//查询名下是否有房产
export function HousesCountSJ(params) {
  return request({
    url: communityApi.getHousesCountSJ,
    method: 'get',
    params,
  })
}

export function getMarriage(params) {
  return request({
    url: communityApi.getMarriage,
    method: 'get',
    params,
  })
}

export function subsidycalculation(data) {
  return request({
    url: communityApi.subsidycalculation,
    method: 'post',
    data,
  })
}

export function getHousesCount(params) {
  return request({
    url: communityApi.getHousesCount,
    method: 'get',
    params,
  })
}

export function UserQX(params) {
  return request({
    url: communityApi.UserQX,
    method: 'get',
    params,
  })
}
export function getProposerList(params) {
  return request({
    url: communityApi.getProposerList,
    method: 'get',
    params,
  })
}

export function getYdsbResult(params) {
  return request({
    url: communityApi.getYdsbResult,
    method: 'get',
    params,
  })
}

export function postWebToChangeInto(data) {
  return request({
    url: communityApi.postWebToChangeInto,
    method: 'post',
    data,
  })
}

export function getProposerListWeb(params) {
  return request({
    url: communityApi.getProposerListWeb,
    method: 'get',
    params,
  })
}

export function getWeb_NewProposerbyID(params) {
  return request({
    url: communityApi.getWeb_NewProposerbyID,
    method: 'get',
    params,
  })
}
